]> dgit.raspbian.org Git - ostree.git/commit
core: don't skip entries in _ostree_validate_structureof_xattrs
authorZibran Khan <kali834x@gmail.com>
Wed, 12 Aug 2026 21:33:43 +0000 (03:03 +0530)
committerZibran Khan <kali834x@gmail.com>
Wed, 12 Aug 2026 21:33:43 +0000 (03:03 +0530)
commit7da79688c91981973a7fa235727ceb0313014cb6
tree5cc4c46b3143d09d4f9dac7999ea2c5b49f2f840
parent1e90125e786a0e7090d3e198469b008f7144f48b
core: don't skip entries in _ostree_validate_structureof_xattrs

the for loop already advances the index, but the body incremented it a
second time, so only even-indexed xattrs were examined and the empty-name,
duplicate-name and sort-order checks skipped half the array. a crafted
dirmeta from a remote could hide an unsorted or duplicate xattr in an odd
slot and still pass ostree_validate_structureof_dirmeta.
src/libostree/ostree-core.c
tests/test-basic-c.c